import request from '@/utils/request'

// 查询金相检验列表
export function listNcMetallographicAnalysis(query) {
  return request({
    url: '/business/NcMetallographicAnalysis/list',
    method: 'get',
    params: query
  })
}

// 查询金相检验详细
export function getNcMetallographicAnalysis(id) {
  return request({
    url: '/business/NcMetallographicAnalysis/' + id,
    method: 'get'
  })
}

// 新增金相检验
export function addNcMetallographicAnalysis(data) {
  return request({
    url: '/business/NcMetallographicAnalysis',
    method: 'post',
    data: data
  })
}

// 修改金相检验
export function updateNcMetallographicAnalysis(data) {
  return request({
    url: '/business/NcMetallographicAnalysis',
    method: 'put',
    data: data
  })
}

// 删除金相检验
export function delNcMetallographicAnalysis(id) {
  return request({
    url: '/business/NcMetallographicAnalysis/' + id,
    method: 'delete'
  })
}
